package com.ty.day2.home;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/15 18:21
 */
public class Hardware {
    String brand;
    String model;
    Double price;

    public Hardware() {
    }

    public Hardware(String brand, String model, Double price) {
        this.brand = brand;
        this.model = model;
        this.price = price;
    }

    public void print() {
        System.out.println("brand='" + brand + '\'' +
                ", model='" + model + '\'' +
                ", price=" + price );
    }
}
